package com.cqc.zhbjcqc.net;

import com.lidroid.xutils.HttpUtils;
import com.lidroid.xutils.http.RequestParams;
import com.lidroid.xutils.http.callback.RequestCallBack;
import com.lidroid.xutils.http.client.HttpRequest;

/**
 * Created by ${cqc} on 2016/9/27.
 */

public class MainRequest {
    private static MainRequest mainRequest;

    private MainRequest() {
    }

    public static MainRequest getInstance() {
        if (mainRequest == null) {
            mainRequest = new MainRequest();
        }
        return mainRequest;
    }

    public void makePostRequest(String url, RequestParams params, RequestCallBack<String> callBack) {
        HttpUtils http = new HttpUtils();
        http.send(HttpRequest.HttpMethod.POST,url,params,callBack);
    }


}
